package position

import (
	"github.com/gin-gonic/gin"
	"shimmer/neusoft_club_backend/controllers/cons"
	"shimmer/neusoft_club_backend/controllers/utils"
	"shimmer/neusoft_club_backend/dao/domain"
	"shimmer/neusoft_club_backend/services"
)

func findAllUsersPositionForClub(c *gin.Context) {
	_,err := domain.GetUserFromContext(c)
	if err != nil {
		services.AbortWithError(c,err)
		return
	}
	clubBidding := &cons.ClubUriParamBinding{}
	if err = c.ShouldBindUri(clubBidding);err != nil {
		services.AbortWithError(c,err)
		return
	}
	_,err = utils.GetPaginationFromContext(c)
	if err != nil {
		services.AbortWithError(c,err)
		return
	}

	panic("no implemented")
}

func ConfigureUserPositionController(r *gin.RouterGroup) {
	r.GET("/",findAllUsersPositionForClub)
}